﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GestionePolveriLib.Facades;
using System.ComponentModel;

namespace GestionePolveriLib.BL
{
    [Serializable]
    public class POS
    {
        [Browsable(false)]
        public int ID { get; set; }
        [Browsable(false)]
        public Guid IDOperatore { get; set; }
        [Browsable(false)]
        public int IDImpianto { get; set; }
        [Browsable(false)]
        public Int16 IDTurno { get; set; }
        [DisplayName("POS")]
        public int POSValue { get; set; }

        [DisplayName("Data POS")]
        public DateTime DateOfPos { get; set; }
        public string Turno { get; set; }
        public string Impianto { get; set; }
        public string Operatore { get; set; }

        public POS()
        {

        }

        public static POS GetCurrentPOS(Turno turno, Operatore operatore, Impianto impianto, DateTime data)
        {
            POS retValue = null;

            POSTableFacade tf = new POSTableFacade();

            retValue = tf.GetCurrentPOS(turno, operatore, impianto, data);

            return retValue;
        }
    }
}
